package main

import (
	"fmt"
	"strings"
)

type Vertex struct {
	X int
	Y int
}

var m map[string]Vertex

func WordCount(s string) map[string]int {
	m := make(map[string]int)
	for _, v := range strings.Fields(s) {
		m[v]++
	}
	return m
}

func main() {
	m = make(map[string]Vertex)
	m["Bell Labs"] = Vertex{40, -74}
	fmt.Println(m["Bell Labs"])

	m["Google"] = Vertex{37, -122}
	fmt.Println(m["Google"])

	m["Google"] = Vertex{38, -122}
	fmt.Println(m["Google"])

	delete(m, "Google")
	fmt.Println(m["Google"])

	elem, ok := m["Google"]
	fmt.Println("The value:", elem, "Present?", ok)
}
